package com.example.controller;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Paths;

public class ReanameFile {
	public static void main(String[] args) throws FileNotFoundException, IOException {
		File[] files = Paths.get("F:\\学习视频\\SpringBoot实战——理财系统系统开发").toFile().listFiles();
		for (File file : files) {
			String filename = file.getName();
			filename = filename.replace("[itjc8.com]_", "");
			file.renameTo(Paths.get("F:\\学习视频\\SpringBoot实战——理财系统系统开发\\" + filename).toFile());
			System.out.println(filename + "，修改成功！");
		}
	}
}
